package com.demo.cms.dao;

import java.util.List;
import java.util.Map;

import com.demo.core.dao.base.BaseCoreDao;
import com.demo.core.dao.base.support.SearchDaoSupport;
import com.demo.cms.model.ArticleComment;

/**
 * 评论表数据库访问Dao
 * 
 * @author ryuu.kk
 *
 */
public interface ArticleCommentDao extends BaseCoreDao<ArticleComment, Long>, SearchDaoSupport<ArticleComment> {

	/**
	 * 查询树形结构的评论数据
	 * @param params 参数Map
	 * @return List<ArticleComment> 评论模型列表
	 */
	List<ArticleComment> tree(Map<String, Object> params);

	/**
	 * 更新反馈审核阶段
	 * 更新字段CHECK_STEP & IS_CHECKED;
	 * @param articleComment ArticleComment
	 * @param params Map<String, Object> params
	 * @return int
	 */
	int updateStep(ArticleComment articleComment, Map<String, Object> params);
}
